﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MsForgeReboot.Web.Controllers {
    using MsForgeReboot.Framework.Interfaces;

    public class EventController : Controller {
        private readonly IEventService eventService;

        public EventController(IEventService eventService) {
            this.eventService = eventService;
        }

        public ActionResult Index(int page, int pageSize) {
            return View(this.eventService.UpcomingEvents(page, pageSize));
        }

        public ViewResult Details(string urlPointer) {
            return View(this.eventService.GetByUrlPointer(urlPointer));
        }
    }
}